package com.longlonggo.action;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.longlonggo.action.BaseAction;

/**
 * 分类表页面控制层
 * @author 石马人山 me@longlonggo.com
 * @Created 2017年8月9日 上午11:14:55</p>
 * @version 100-000-000<br/>
 * @description <br/>
 */
@Controller
@RequestMapping("/web/category")
public class CategoryAction extends BaseAction{
	
	public CategoryAction() {
		System.out.println("-----------start");
	}
	
	 /**
	  * 主页
	  * @param request
	  * @param model
	  * @return
	  */
    @RequestMapping(value="/index")
    public String addMessage(HttpServletRequest request,Model model){
    	System.out.println("-------------find");
    	model.addAttribute("myName", "yyyy");
    	return "/article/index";
    }
}
